package com.vhall.component.entity.rbac.vo;

import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * @author dalong
 * @date 2021-05-18 14:39
 */
@Data
public class RoleRspVO implements Serializable {

    private static final long serialVersionUID = 1071703900540862858L;
    @JsonProperty("role_id")
    private Integer roleId;

    @JsonProperty("name")
    private String name;

    @JsonProperty("code")
    private String code;

    @JsonProperty("desc")
    private String desc;

    @JsonProperty("status")
    private Integer status;

    @JsonProperty("app_id")
    private String appId;
    /**
     * 创建人昵称
     */
    @JsonProperty("account_name")
    private String accountName;

    @JsonProperty("level")
    private Integer level;

    @JsonProperty("created_at")
    private LocalDateTime createdAt;

    @JsonProperty("updated_at")
    private LocalDateTime updatedAt;

    @JsonProperty("deleted_at")
    private LocalDateTime deletedAt;

    @JsonProperty("status_str")
    private String statusStr;
    /**
     * 1:平台级,2:部门级
     */
    @JsonProperty("type")
    private Integer type;
    @JsonProperty("type_name")
    private String typeName;
}
